<%@ page title="" language="C#" masterpagefile="~/RealtimeSite.master" autoeventwireup="true" inherits="LeaveType, App_Web_kim3uyhp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style6
        {
            width: 915px;
            color: #FFFFFF;
        }
        .style14
        {
            height: 27px;
            width: 906px;
            font-size: 8pt;
        }
        .style16
        {
            width: 286px;
        }
        .textbox
        {}
        .btnRt003366
        {}
        .style17
        {
            width: 196px;
        }
        .style18
        {
            font-family: Verdana;
            font-size: 8pt;
        }
        .style19
        {
            font-family: Verdana;
            font-size: 9pt;
            font-weight: 700;
        }
        .style20
        {
            height: 27px;
            width: 906px;
            font-size: 8pt;
            color: #FFFFFF;
        }
        .style21
        {
            color: #FFFFFF;
        }
        .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: .05rem 0rem;
    /* margin-bottom: 1rem; */
    list-style: none;
    background-color: #fff !important;
    border-radius: .25rem;
    color: #E15C11;
    font-size: 18px;
    font-weight: 500;
}
           .card [class*=card-header-]:not(.card-header-icon):not(.card-header-text):not(.card-header-image) {
    border-radius: 3px;
      margin-top: -37px;
    padding: 7px !important;
}
.grid-lable1 span
{
    font-size: 14px !important;
    line-height: 1.42857 !important;
    color: #333 !important;
    font-weight: 600 !important;
    padding-left: 7px !important;
    padding-top: -3px !important;
    position: relative !important;
    top: -3px !important;
}
#MainContent_lblLeaveCode
{
    font-size:14px;
    font-weight:bold; 
}
#MainContent_lblLeaveTypeName
{
     font-size:14px;
    font-weight:bold; 
}
#MainContent_lblDefineLeaveDetails
{
    font-size:16spx;
     font-weight:bold; 
}
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<script type="text/javascript">

    function validate() {
        var txttext = document.getElementById("<%= txtleavecode.ClientID %>").value;
        if (txttext == "") {
            alert("Please Enter Leave code");
            document.getElementById("<%= txtleavecode.ClientID %>").focus();
            return false;
        }
        //        var txttext1 = document.getElementById("<%= txtleavecode.ClientID %>").value;
        //        if (txttext1.length < 3) {
        //            alert("Leave code must 3 digit");
        //            document.getElementById("<%= txtleavecode.ClientID %>").focus();
        //            return false;
        //        }
        var txttext = document.getElementById("<%= txtleavename.ClientID %>").value;
        if (txttext == "") {
            alert("Please Enter Leave Name");
            document.getElementById("<%= txtleavename.ClientID %>").focus();
            return false;
        }

        return true;
    }
   
</script>
        <div class="main-panel">
        <div class="content">
        <div class="container" id="Leavetype" runat="server">
        <div class="row dash-pane2">	
            <div class="card">
                <div class="card-header card-header-warning" id="cardheadergreen" runat="server">
                  <h4 class="card-title"><i class="fa fa-edit fa-fw"></i>  <asp:Label ID="lblAddEditLeaveDetails" runat="server" Text="Add/Edit Leave Details"></asp:Label></h4>
             
                </div>
                <div class="card-body table-responsive">
                    <div class="row breadcrumb">
                    <b>  <asp:Label ID="lblDefineLeaveDetails" runat="server" Text="Define Leave Details"></asp:Label></b>
                    </div>
                    <div class="row" style="margin-top:-20px;">
                    <div class="col-md-3">
							  <asp:Label ID="lblLeaveCode" runat="server" Text="Leave Code"></asp:Label>
							   <%--<input class="form-control" />--%>
                               <asp:TextBox ID="txtleavecode" runat="server" autocomplete="off" 
                                      class="form-control" MaxLength="3"></asp:TextBox>
							  </div>
							  <div class="col-md-3">
								    <asp:Label ID="lblLeaveTypeName" runat="server" Text="Leave Type Name"></asp:Label>
							   <%-- <input class="form-control" />--%>
                                <asp:TextBox ID="txtleavename" runat="server" class="form-control"></asp:TextBox>
							  </div>	
                    </div>

                    <div class="row" style="margin-top:10px; margin-bottom:150px; margin-left:0px; margin-right:0px;">
                     <div class="panel panel-primary" style="width:100%">
                     <div class="panel-heading" style="padding:5px; font-size:15px; font-weight:bold"><asp:Label ID="lblHolidaysandweeklyOffSummary" runat="server" Text="Holidays and weekly Off Summary"></asp:Label></div>
                     <div class="panel-body" style="background:#eee; padding-top:10px; padding-bottom:10px;">
                     <div class="row">
                         <div class="col-md-3 grid-lable1">
							    <%--<input type="checkbox" /> Weekly off Incude(Yes/No)--%>
                                <asp:CheckBox ID="Chkweekly" runat="server" TabIndex="3" Checked="True" /> <asp:Label
                                        ID="lblWeeklyoffIncude" runat="server" Text="Weekly off Incude(Yes/No)"></asp:Label>
							  </div>
							  <div class="col-md-3 grid-lable1">
							   <asp:CheckBox ID="ChkHoliday" runat="server" TabIndex="4" Checked="True" /> <asp:Label
                                        ID="lblHolidayIncude" runat="server" Text="Holiday Incude(Yes/No)"></asp:Label>
							  </div>
							  <div class="col-md-3 grid-lable1">
							    <asp:CheckBox ID="Chkpaid" runat="server" TabIndex="5" Checked="True" /> 	<asp:Label
                                        ID="lblPaidLeave" runat="server" Text="Paid Leave"></asp:Label>
							  </div>
                                <div class="col-md-3 grid-lable1">
							    <asp:CheckBox ID="chkleavecarryforward" runat="server" TabIndex="5" Checked="True" /> 	 <asp:Label
                                        ID="Label1" runat="server" Text="Is-Leave Carry Forward"></asp:Label>
							  </div>
                     </div>
                     </div>
                     </div>
                
                    </div>
                    <div class="row" style="margin-left:auto; margin-right:auto; display:table; margin-top:20px;">
                        <asp:Button ID="cmdsave" runat="server" Text="Save"  OnClick="cmdsave_Click" onclientclick="return validate()"
        type="button" class="btn btn-success " /><i class="fa fa-plus;"></i>&nbsp;&nbsp;
        <asp:Button ID="cmdcancel" runat="server" type="button" Text="Cancel" onclick="cmdcancel_Click" 
           class="btn btn-danger"
           /><i  class="fa fa-trash-o;"></i>
                    </div>
                </div>
              </div>
			

				</div>

       </div></div></div>
            

 <script src="js/jquery-1.8.3.min.js"
       type="text/javascript"></script>

 
</asp:Content>
